<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../Vue.js/vue.js"></script>
</head>
<body>
    <div class="root">
        <h1>插值语法</h1>
        <h2>HELLO, {{name}}, {{Date.now()}}</h2>
        </hr>
        <h1>指令语法</h1>
        <h2>点击地址</h2>
        <p>v-bind:可以简写为:</p>
        <a v-bind:href="temp.url.toUpperCase()" :x="temp.hello">百度啦啦啦</a>
    </div>
</body>
<script>
    new Vue({
        el: ".root",
        data: {
            name: "XCZ",
            temp: {
                url: "https://www.baidu.com",
                hello: "你好"
            }
            
        }
    })
</script>
</html>